package cn.icanci.loopstack.bic.dal.mongo.daointerface;

import cn.icanci.loopstack.bic.dal.mongo.dateobject.UseCaseDO;

/**
 * @author icanci
 * @since 1.0 Created in 2023/09/10 20:12
 */
public interface UseCaseDAO extends BaseDAO<UseCaseDO> {
    /** 文档对应的名字  */
    String           COLLECTION_NAME  = BASE_COLLECTION_NAME + "use-case";
    /** 文档对应的Class */
    Class<UseCaseDO> COLLECTION_CLASS = UseCaseDO.class;

    UseCaseDO queryBySystemUuidAndName(String systemUuid, String name);

    UseCaseDO queryBySystemUuidAndKey(String systemUuid, String key);

    UseCaseDO queryBySystemAndUseCase(String systemUuid, String useCaseUuid);

    /** 列 */
    interface UseCaseColumn extends BaseColumn {
        String USE_CASE_NAME = "useCaseName";
        String USE_CASE_KEY  = "useCaseKey";
        String SYSTEM_UUID   = "systemUuid";
    }
}
